package com.wk.springboot.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
@EnableConfigurationProperties(MyProperties.class)
public class MyConfiguration {

    public MyConfiguration(){
        System.out.println("  MyConfiguration init ");
    }


    @Bean
    public MyBean myBean(MyProperties myProperties){
        return new MyBean(myProperties);
    }



}
